/* 基础样式 */
:root {
    --sidebar-width: 240px;
    --primary-color: #4f46e5;
    --sidebar-bg: #1e293b;
    --text-color: #f8fafc;
    --hover-color: #334155;
    --active-color: #3b82f6;
    --content-bg: #f1f5f9;
    --tabs-height: 42px;
  }
  
  /* 整体布局 */
  .admin-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--content-bg);
  }
  
  .admin-container {
    display: flex;
    min-height: 100vh;
  }
  
  /* 侧边栏样式 */
  .admin-sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--text-color);
    position: fixed;
    height: 100vh;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .sidebar-nav {
    padding: 1rem 0;
  }
  
  .sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .sidebar-nav li {
    margin-bottom: 0.25rem;
  }
  
  .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .nav-link:hover {
    background-color: var(--hover-color);
  }
  
  .nav-link.active {
    background-color: var(--active-color);
  }
  
  .nav-link span {
    margin-right: 0.75rem;
  }
  
 .sidebar-nav  .submenu li {
    padding-left: 20px;
  }

  /* 内容区域样式 */
  .admin-content-main {
    flex: 1; 
    background-color: var(--content-bg);
    min-height: 100vh;
    margin-left: var(--sidebar-width); 
  }
  #content-card{ 
    padding: 0 2rem 2rem 2rem;
    flex:1;
  }

  .content-wraper{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
 